<div class=" row">
    <div class="col-md-3 col-sm-3 col-xs-6">
        <a data-toggle="tooltip" title="Hiện có <?php echo $user ;?> người dùng" class="well top-block" href="<?php echo base_url().'admin/user'; ?>">
            <i class="glyphicon glyphicon-user blue"></i>

            <div>Tổng Số Thành Viên</div>
            <div><?php echo $user ;?></div>
            <span class="notification"><?php echo $user ;?></span>
        </a>
    </div>

    <div class="col-md-3 col-sm-3 col-xs-6">
        <a data-toggle="tooltip" title="Hiện Có <?php echo $cnews; ?> Tin " class="well top-block" href="<?php echo base_url().'admin/news'; ?>">
            <i class="glyphicon glyphicon-globe green"></i>

            <div>Tổng Số Tin</div>
            <div><?php echo $cnews; ?></div>
            <span class="notification green"><?php echo $cnews; ?></span>
        </a>
    </div>

    <div class="col-md-3 col-sm-3 col-xs-6">
        <a data-toggle="tooltip" title="Hiện có <?php echo $sale; ?> đơn hàng" class="well top-block" href="<?php echo base_url().'admin/carts'; ?>">
            <i class="glyphicon glyphicon-shopping-cart yellow"></i>

            <div>Tổng Đơn Hàng</div>
            <div><?php echo $sale; ?></div>
            <span class="notification yellow"><?php echo $sale; ?></span>
        </a>
    </div>

    <div class="col-md-3 col-sm-3 col-xs-6">
        <a data-toggle="tooltip" title="Hiện có <?php echo $product; ?> sản phẩm" class="well top-block" href="<?php echo base_url().'admin/product'; ?>">
            <i class="glyphicon glyphicon-briefcase red"></i>

            <div>Tổng Sản Phẩm</div>
            <div><?php echo $product; ?></div>
            <span class="notification red"><?php echo $product; ?></span>
        </a>
    </div>
</div>

<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well">
                <h2><i class="glyphicon glyphicon-info-sign"></i> Giới Thiệu</h2>

                <div class="box-icon">
                    <a href="#" class="btn btn-setting btn-round btn-default"><i
                            class="glyphicon glyphicon-cog"></i></a>
                    <a href="#" class="btn btn-minimize btn-round btn-default"><i
                            class="glyphicon glyphicon-chevron-up"></i></a>
                    <a href="#" class="btn btn-close btn-round btn-default"><i
                            class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            <div class="box-content row">
                <div class="col-lg-7 col-md-12">
                    <h1>Trang Quản Trị Metronic<br>
                    </h1>
                    <p>
                        <?php echo $statistic['website']['website_about_review']; ?>
                    </p>
                </div>
                

            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="box col-md-4">
        <div class="box-inner homepage-box">
            <div class="box-header well">
                <h2><i class="glyphicon glyphicon-th"></i> Thẻ</h2>

                <div class="box-icon">
                   
                    <a href="#" class="btn btn-minimize btn-round btn-default"><i
                            class="glyphicon glyphicon-chevron-up"></i></a>
                    <a href="#" class="btn btn-close btn-round btn-default"><i
                            class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            <div class="box-content">
                <ul class="nav nav-tabs" id="myTab">
                    <li class="active"><a href="#info">Thông Tin Trang </a></li>
                    
                </ul>

                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active" id="info">
                       <p class="col-xs-6">Tổng số hình ảnh:</p>
                        <p class="col-xs-6 text-right text-info"><strong><?php echo $image; ?></strong></p>
                        <p class="col-xs-6">Tổng Bài viết</p>
                        <p class="col-xs-6 text-right text-primary"><?php echo $cnews; ?></p>
                        <p class="col-xs-6 col-xs-offset-1">Bài Nháp:</p>
                        <p class="col-xs-5 text-right text-warning"><?php echo $stick; ?></p>
                    </div>
                    
                    <div class="tab-pane" id="messages">
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/span-->

    <div class="box col-md-4">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-user"></i> Lịch sử truy cập</h2>

                <div class="box-icon">
                     <a href="#" class="btn btn-setting btn-round btn-default"><i
                            class="glyphicon glyphicon-cog"></i></a>
                    <a href="#" class="btn btn-minimize btn-round btn-default">
                    <i class="glyphicon glyphicon-chevron-up"> </i>
                            </a>
                    <a href="#" class="btn btn-close btn-round btn-default"><i
                            class="glyphicon glyphicon-remove"></i></a>

                </div>

            </div>
            <div class="box-content">
                <div class="box-content">
                    <ul class="dashboard-list">
                        <?php if(!empty($log)):
                        foreach ($log as $v):
                            ?><li><a href="<?php echo site_url().'admin/user/view/'.$v->getShUser()->getId();?>"/><?php echo $v->getShUser()->getUsername();?></a> đã <a href="<?php echo site_url().'admin/log/view/'.$v->getId() ; ?>">
                        <?php

                            echo $explantion = $logconfig[$v->getObject()]['explaination'];
                            ?>
                            </a>
                            <?php echo date('d-m-y', $v->getDate()); ?>
                            </li>

                            <?php
                        endforeach;
                        endif;
                        ?>
                         
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!--/span-->

    <div class="box col-md-4">
        <div class="box-inner homepage-box">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-list-alt"></i> Tình Trạng Website</h2>

                <div class="box-icon">
                    <a href="#" class="btn btn-minimize btn-round btn-default"><i
                            class="glyphicon glyphicon-chevron-up"></i></a>
                    <a href="#" class="btn btn-close btn-round btn-default"><i
                            class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            <div class="box-content">
                <div class="row">
                    <p class="col-xs-6">Trạng thái:</p>
                    <p class="col-xs-6 text-right"><strong><?php
                        $txt_color = $statistic['website']['website_status']?'success':'danger';
                        echo '<span class="text-'.$txt_color.'">'.
                        ($statistic['website']['website_status']?'Bật':'Tắt').
                        '</span>';
                        ?></strong></p>
                </div>
                <div class="row">
                    <p class="col-xs-6">Bình Luận:</p>
                    <p class="col-xs-6 text-right"><strong><?php
                        $txt_color = $statistic['website']['facebook_comment']?'success':'danger';
                        echo '<span class="text-'.$txt_color.'">'.
                        ($statistic['website']['facebook_comment']?'Bật':'Tắt').
                        '</span>';
                        ?></strong></p>
                </div>
                <div class="row">
                    <p class="col-xs-6">Tiêu đề:</p>
                    <p class="col-xs-6 text-right"><strong><?php
                        echo $statistic['website']['website_title'];
                        ?></strong></p>
                </div>               
            </div>
        </div>
    </div>
    <!--/span-->
</div><!--/row-->
</div>